package com.core.safe;

import com.core.comment.StringUtil;

public class UserToken {
    private String username;
    private String password;
    private String ip;
    private String token;

    public UserToken(String username, String password) {
        //String token = StringUtil.getUuid();
        // setToken(token);
        this.username = username;
        this.password = password;
    }

    public UserToken(String username, String password, String ip) {
        String token = StringUtil.getUuid();
        setToken(token);
        setIp(ip);
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
